package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 审核记录表
 * @TableName tb_app_log
 */
@TableName(value ="tb_app_log")
@Data
public class TbAppLog implements Serializable {
    /**
     * 审核记录id
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 审核类型(1:施工单,2:出货,3:外发,4:采购),如有新增类型请修改此备注
     */
    private Integer appType;

    /**
     * 通用id
     */
    private Long uniId;

    /**
     * 审核人id(用户id)
     */
    private Long appById;
    /**
     * 审核人
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 审核状态(1:审核通过,0:驳回)
     */
    private Integer appStatus;

    /**
     * 备注
     */
    private String remark;

    /**
     * 审核时间
     */
    private Date appTime;

    public TbAppLog() {
    }

    public TbAppLog(Integer appType, Long uniId, String userName, Integer appStatus, String remark) {
        this.appType = appType;
        this.uniId = uniId;
        this.userName = userName;
        this.appStatus = appStatus;
        this.remark = remark;
    }
}